from docx import Document
from docx.document import Document as Doc

doc = Document('demo.docx')  # type: Doc
# doc.paragraphs：文档中的段落
for no, p in enumerate(doc.paragraphs):
    print(no, p.text)